package puzzle.projecteuler;

import java.math.BigInteger;

public class Fraction {

	private BigInteger numerator;
	private BigInteger denominator;
	public BigInteger getNumerator() {
		return numerator;
	}
	public void setNumerator(BigInteger numerator) {
		this.numerator = numerator;
	}
	public BigInteger getDenominator() {
		return denominator;
	}
	public void setDenominator(BigInteger denominator) {
		this.denominator = denominator;
	}
	
	public Fraction(BigInteger numerator, BigInteger denominator) {
		this.numerator = numerator;
		this.denominator = denominator;
	}
	
	@Override
	public String toString() {
		return this.numerator + "/" + this.denominator; 
	}
	
	public double doubleValue() {
		return this.numerator.doubleValue()/this.denominator.doubleValue();
	}
}
